import java.awt.Point;
import java.io.Serializable;

public abstract class EntityData implements Serializable{
	public int id, hp, mana, weapon, hat, direction, hpMax, manaMax, xp, type, level;
	public String name;
	public boolean alive, online;
	public Point location;
	static final public int HP_DEFAULT=100, MANA_DEFAULT=10, WEAPON_DEFAULT=10, HAT_DEFAULT=2, DIRECTION_DEFAULT=1, HPMAX_DEFAULT=100, MANAMAX_DEFAULT=100, XP_DEFAULT=0, LEVEL_DEFAULT=1;
	static final public boolean ALIVE_DEFAULT=true, ONLINE_DEFAULT=true;
	public EntityData(int id, int type, String name, Point location)
	{
		this.id=id;
		this.type=type;
		this.name=name;
		this.location=location;
		hp = HP_DEFAULT;
		mana = MANA_DEFAULT;
		weapon = WEAPON_DEFAULT;
		hat = HAT_DEFAULT;
		direction = DIRECTION_DEFAULT;
		hpMax = HPMAX_DEFAULT;
		manaMax = MANAMAX_DEFAULT;
		xp = XP_DEFAULT;
		alive = ALIVE_DEFAULT;
		online = ONLINE_DEFAULT;
		level = LEVEL_DEFAULT;
	}
}